//
//  UIButton+Category.h
//  haitao
//
//  Created by Seven on 16/5/4.
//  Copyright © 2016年 Seven. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIButton (EnlargeTouchArea)

/**
 *  扩大 UIButton 的點擊範圍
 *  控制上下左右的延長範圍
 *
 *  @param top    <#top description#>
 *  @param right  <#right description#>
 *  @param bottom <#bottom description#>
 *  @param left   <#left description#>
 */
- (void)setEnlargeEdgeWithTop:(CGFloat)top right:(CGFloat)right bottom:(CGFloat)bottom left:(CGFloat)left;


+ (instancetype)initWithFrame:(CGRect)frame;
- (void)addTarget:(id)target action:(SEL)action;
- (void)setTitleNormal:(NSString *)title;
- (void)setTitleColor:(UIColor *)color;
- (void)setImage:(UIImage *)image;
- (void)setImageWithName:(NSString *)imageName;
- (void)setImageWithUrl:(NSString *)url;
- (void)setBackgroundImageWithUrl:(NSString *)url;
- (void)setBackgroundImage:(UIImage *)image;
- (void)setBackgroundImageWithName:(NSString *)imageName;

- (void)setSelectedImage:(UIImage *)image;
- (void)setSelectedTitleColor:(UIColor *)color;
- (void)setSelectedTitle:(NSString *)title;

- (void)setTitleFontWithSize:(CGFloat)fontSize;
- (void)setTitleFont:(UIFont *)font;

- (void)setSelectedImageWithName:(NSString *)imageName;
- (void)setHighlightedImageWithName:(NSString *)imageName;

- (UILabel *)theTitleLabel;
- (UIImageView *)theImageView;
- (CGFloat)titleLabelWidth;

- (void)addPressAnimation;
@end
